<script lang="ts" setup>
import { List,Failed,Checked,BellFilled,Platform } from '@element-plus/icons-vue'
import { CardModel } from '../../class/CardModel'

const props = defineProps({
    info: CardModel
})

</script>
<template>
    <div class="card">
        <div class="left">
            <List v-if="props.info?.Icon == 'List'" style="color: rgb(230, 160, 60);" />
            <Failed v-if="props.info?.Icon == 'Failed'" style="color: rgb(145, 150, 155);" />
            <Checked v-if="props.info?.Icon == 'Checked'" style="color: rgb(65, 160, 255);" />
            <BellFilled v-if="props.info?.Icon == 'BellFilled'" style="color: rgb(105, 195, 60);" />
            <Platform v-if="props.info?.Icon == 'Platform'" style="color: rgb(250, 110, 110);"/>
        </div>

        <div class="right">
            <div><span>{{ info?.Title }}</span></div>
            <div><span>{{ info?.Count }}</span></div>
        </div>
    </div>
</template>

<style lang="scss" scoped>
.card {
    height: 50px;
    line-height: 25px;
}

.left {
    width: 50px;
    height: 50px;
    float: left;

    .el-icon {
        font-size: 50px;
    }
}

.right {
    width: 100px;
    height: 50px;
    float: right;
    color: black;
}
</style>